import Vue from 'vue'
import VueRouter from "vue-router";

const Home = () => import('views/Home')
const PhotoAlbum = () => import('views/PhotoAlbum')
const BlogChapter = () => import('views/BlogChapter')

const Classify = () => import('components/waterfall/Classify')
const Photos = () => import('components/waterfall/Photos')

Vue.use(VueRouter)

const routes = [
  {
    path: '',
    redirect: '/Home'
  },
  {
    path: '/Home',
		component: Home
  },
	{
		path: '/PhotoAlbum',
		component: PhotoAlbum,
		children: [
			{
				path: '',
				component: Classify
			},
			{
				path: 'live',
				component: Photos
			}
		]
	},
	{
		path: '/BlogChapter',
		component: BlogChapter
	}
]

const router = new VueRouter({
  routes,
  mode: "history"
})

export default router
